'use strict';

const Service = require('egg').Service;

class listService extends Service {
  async getlist() {
    return await this.app.mysql.select('list');
  }
  async addcomment(comment,username) {
    return await this.app.mysql.insert('list', { comment,username })
  }
}

module.exports = listService;
